<template>
	<view class="list">
		<view class="item-box flex-s" v-for="(item,index) in list" :key="index">
			<image class="item-img" :src="imgURL+item.scenic.scenicListPhoto.resUrl"></image>
			<view class="item-cont">
				<view class="cont-title">{{item.scenic.name}}</view>
				<view class="cont-title2 mar-t20">{{item.scenic.introductory}}</view>
				<view class="cont-title3">
					<text class="t3-text">马上了解</text>
					<u-icon name="arrow-right" color="#4C604E" size="12px"></u-icon>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		imgURL
	} from '@/api/config'
	export default {
		data() {
			return {
				imgURL,


			}
		},
		props: {

			list: {
				type: Array,
				default: () => []
			},


		},
		components: {

		},



		methods: {

			bindPath(path) {
				console.log(path)
				if (path) {
					uni.navigateTo({
						url: path
					})
				}


			}









		}
	}
</script>

<style lang="less" scoped>
	.list {
		padding: 30rpx;
		background: #fff;
		border-radius: 20rpx;

		.item-box {
			margin-bottom: 30rpx;

			.item-img {
				width: 262rpx;
				height: 174rpx;
				flex-shrink: 0;
				border-radius: 20rpx;
			}

			.item-cont {
				flex: 1;
				font-family: SF Pro Display, SF Pro Display;
				padding-left: 30rpx;

				.cont-title {
					font-weight: bold;
					font-size: 26rpx;
					color: #4C604E;
				}

				.cont-title2 {
					height: 61rpx;
					font-weight: 400;
					font-size: 22rpx;
					color: #9E9E9E;
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
				}

				.cont-title3 {
					font-weight: 400;
					font-size: 22rpx;
					color: #4C604E;
					display: flex;
					align-items: center;
					justify-content: flex-end;
					margin-top: 30rpx;

					.t3-text {
						margin-right: 6rpx;
					}
				}

			}
		}

		.item-box:last-child {
			margin-bottom: 0;
		}
	}
</style>